import service from '@/utils/request'

// 登录
export const userLogin = (data) => {
  return service({
    url: '/api/login',
    method: 'post',
    data
  })
}

// 管理员创建新账户
export const adminCreateAccount = (data) => {
  return service({
    url: "/acc/register",
    method: "post",
    data,
  });
}

// 管理员更新账户
export const adminUpdateAccount = (data) => {
  return service({
    url: "/acc/updateAccount",
    method: "post",
    data,
  });
};

// 管理员删除账户
export const adminDeleteAccount = (data) => {
  return service({
    url: "/acc/deleteAccount",
    method: "get",
    data,
  });
};

// 查询账号列表
export const getManagerList = (data) => {
  return service({
    url: "/acc/managerList",
    method: "post",
    data,
  });
}